package old.day04;
import java.util.Scanner;

public class ScoreLevel {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入成绩：");
        double score=scan.nextDouble();
        System.out.println("成绩："+score);
        if (score<0||score>100){
            System.out.println("成绩不合法");
        }else if (score>=90){
            System.out.println("A-优秀");
        }else if (score>=80){
            System.out.println("B-良好");
        }else if (score>=60){
            System.out.println("C-及格");
        }else {
            System.out.println("成绩不及格");
        }




    }
}
